<?php

	require_once("enzyme.php");		//check if the enzyme.php is already included; if not included, include and evaluate enzyme.php

	class SearchEnzymeController{		//a class that receives POST from the input field and decides what to do with it
		var $search;
		
		function submitEnzyme(){
			$this->search = $_REQUEST['search'];
		}
		
		function searchEnzyme(){
			$enzyme = new Enzyme();
			$enzyme->search($this->search);	
		}		
	}
	
	$searchEnzymeController = new SearchEnzymeController;
	$searchEnzymeController->submitEnzyme();
	$searchEnzymeController->searchEnzyme();

?>